import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    fileID: "" || sessionStorage.getItem("fileID"),
  },
  getters: {
    fileID: state => state.fileID,
  },
  mutations: {
    SET_FILEID: (state, fileID) => {
      state.fileID = fileID;
      sessionStorage.setItem("fileID",fileID);
    },
  },
  actions: {
  },
  modules: {
  }
})
